#define _CRT_SECURE_NO_WARNINGS 
#include"stdio.h"
#include"math.h"
int main()
{
    double a, b, c;
    double x1, x2;
    double m;
    while (scanf("%lf %lf %lf", &a, &b, &c) != EOF)
    {
        if (a == 0)
        {
            printf("Not quadratic equation\n");
        }
        else
        {
            m = b * b - 4 * a * c;
            if (m == 0)
            {
                x1 = (-b + sqrt(m)) / (2 * a);
                x2 = x1;
                if (x1 == 0)
                    x1 = x2 = 0;
                printf("x1=x2=%.2lf\n", x1);
            }
            else if (m > 0)
            {
                x1 = (-b - sqrt(m)) / (2 * a);
                x2 = (-b + sqrt(m)) / (2 * a);
                printf("x1=%.2lf;x2=%.2lf\n", x1, x2);
            }
            else
            {
                double i, k;
                k = (-b) / (2 * a);
                i = sqrt(-m) / (2 * a);
                printf("x1=%.2lf-%.2lfi;x2=%.2lf+%.2lfi\n", k, i, k, i);
            }
        }
    }

    return 0;
}